//
//  ViewController.m
//  CHRecordCamera
//
//  Created by cyptt on 2022/3/31.
//

#import "ViewController.h"
#import "CHjzCameraViewController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (IBAction)btnClick:(UIButton *)sender {
    
    CHjzCameraViewController * vc = [[CHjzCameraViewController alloc]initWithRecordPhotoType:CH_RECORD_PHOTO_TYPE_FILE_MOVIDE isSaveAblum:YES SuccessBlock:^(id  _Nonnull responseObj) {
        
        NSLog(@"responseObj=====%@",responseObj);
    } failBlock:^(NSError * _Nonnull error) {
        
    }];
    
    [self.navigationController pushViewController:vc animated:YES];
}
- (IBAction)photoBtnClick:(UIButton *)sender {
    CHjzCameraViewController * vc = [[CHjzCameraViewController alloc]initWithRecordPhotoType:CH_RECORD_PHOTO_TYPE_PHOTO isSaveAblum:YES SuccessBlock:^(id  _Nonnull responseObj) {
        
        NSLog(@"responseObj=====%@",responseObj);
    } failBlock:^(NSError * _Nonnull error) {
        
    }];
    
    [self.navigationController pushViewController:vc animated:YES];
    
}


@end
